<?php
return [
    // 微信开放平台账号
    'wechat' => [
        'client_id'  => env('WECHAT_OPEN_PLATFORM_APP_ID'),
        'client_secret'  => env('WECHAT_OPEN_PLATFORM_APP_SECRET'),
    ],
    // 微信公众号
    'wechat-mp' => [
        'driver' => Reezy\OAuth\Driver\OAuthWechat::class,
        'client_id'  => env('WECHAT_OFFICIAL_ACCOUNT_APP_ID'),
        'client_secret'  => env('WECHAT_OFFICIAL_ACCOUNT_APP_SECRET'),

        // 公众号设置支持静默授权的scope
        'scope' => 'snsapi_base'
    ],
    // 支付宝
    'alipay' => [
        'client_id'  => env('ALIPAY_APP_ID'),
        'client_secret'  => env('ALIPAY_APP_SECRET'),

        'app_cert_path'  => env('ALIPAY_APP_CERT_PATH'),
        'root_cert_path'  => env('ALIPAY_ROOT_CERT_PATH'),
        'alipay_cert_path'  => env('ALIPAY_ALIPAY_CERT_PATH'),
    ],
    // OAuthMiddleware 识别 webview
    'ua-mappings' => [
        'wechat-mp' => ' MicroMessenger/' ,
        'alipay' => ' AlipayClient/',
        'qq' => ' QQ/',
        'douyin' => 'Aweme/'
    ]
];